<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Animates an image or images</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.linearstretchimage.html">Imagick::linearStretchImage</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.magnifyimage.html">Imagick::magnifyImage</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="imagick.liquidrescaleimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::liquidRescaleImage</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">Imagick::liquidRescaleImage</span> &mdash; <span class="dc-title">Animates an image or images</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.liquidrescaleimage-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>Imagick::liquidRescaleImage</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$width</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$height</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$delta_x</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$rigidity</code></span>
   )</div>


  <p class="para rdfs-comment">
   This method scales the images using liquid rescaling method. This method
   is an implementation of a technique called seam carving. In order for this
   method to work as expected ImageMagick must be compiled with liblqr support.
   此方法在Imagick基于ImageMagick 6.3.9以上版本编译时可用。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.liquidrescaleimage-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">width</code></em></dt>

     <dd>

      <p class="para">
       The width of the target size
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">height</code></em></dt>

     <dd>

      <p class="para">
       The height of the target size
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">delta_x</code></em></dt>

     <dd>

      <p class="para">
       How much the seam can traverse on x-axis. 
       Passing 0 causes the seams to be straight.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">rigidity</code></em></dt>

     <dd>

      <p class="para">
       Introduces a bias for non-straight seams. This parameter is 
       typically 0.
      </p>
     </dd>

    
   </dl>

  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-imagick.liquidrescaleimage-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-imagick.liquidrescaleimage-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="imagick.resizeimage.html" class="function" rel="rdfs-seeAlso">Imagick::resizeImage()</a> - Scales an image</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.linearstretchimage.html">Imagick::linearStretchImage</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.magnifyimage.html">Imagick::magnifyImage</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
